# -*- coding: utf-8 -*-
"""
------------------------------------------------------------------------------
    File Name:  redis_publish
    Author   :  wanwei1029
    Date     :  2018/10/1
    Desc     :
------------------------------------------------------------------------------
"""
from samp.module.redis.publish_subscribe.RedisHelper import RedisHelper
import samp.samp_logging as sl
import time

logger = sl.get_logger('redis_publish')


def samp():
    """
    """
    publisher = RedisHelper()
    publisher.publish("大家好！")
    time.sleep(5)
    publisher.publish("大家好不好！")


if __name__ == '__main__':
    test_method = "samp"
    if test_method == "samp":
        samp()
